<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>编辑支付信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="{{asset('layui/css/layui.css')}}" media="all">
    <link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
    <script type="text/javascript" src="{{asset('Jquery/jquery-3.3.1.js')}}"></script>
</head>
<body>
<script src="{{asset('layui/layui.js')}}"></script>
<form  class="layui-form" action="{{url('updatePay')}}" method="post">
    @csrf
    <input type="hidden" name="contract_id" value="{{$payInfo->id}}">
    <table class="layui-table">
        <thead>
        <tr>
            <th colspan="4" style="font-size: 18px;text-align: center;color:#666666">编辑支付信息</th>
        </tr>
        <tr>
            <th style="text-align: center;color:#666666;font-size: 14px;width: 150px">
                <label >所属房屋编号:</label>
            </th>

            <th style="width: 400px" colspan="3">
                <div>
                    <input type="text" name="levy_house_num" readonly  value="{{ $payInfo->houses->levy_house_num }}" lay-verify="required" autocomplete="off" class="layui-input" style="width:400px; height:30px;" >
                </div>

            </th>
        </tr>
        <tr>
            <th style="text-align: center;color:#666666;font-size: 14px"><label>收款账号:</label></th>
            <th colspan="3">
                <div>
                    <input type="number" name="collect_account" required  value="@if($payInfo->pays){{ $payInfo->pays->collect_account }}@endif" lay-verify="required" placeholder="请输入收款账号，如：6222600260001072444" autocomplete="off" class="layui-input" style="width:400px; height:30px;" >
                </div>
                <div>
                    @if($errors->has('collect_account'))
                        <span class="s3"><i class="red">*</i>  <sapn id="cellphone_point" style="color: red">{{$errors->first('collect_account')}}</sapn></span>
                    @endif
                </div>
            </th>
        </tr>
        <tr>
            <th style="text-align: center;color:#666666;font-size: 14px">
                <label>收款行名称:</label>
            </th>
            <th colspan="3">
                <div>
                    <input type="text" name="collect_bank" required  lay-verify="required" value="@if($payInfo->pays){{ $payInfo->pays->collect_bank }}@endif" placeholder="请输入收款行名称，如：中国农业银行分行" autocomplete="off" class="layui-input" style="width:400px; height:30px;" >
                </div>
                <div>
                    @if($errors->has('collect_bank'))
                        <span class="s3"><i class="red">*</i>  <sapn id="cellphone_point" style="color: red">{{$errors->first('collect_bank')}}</sapn></span>
                    @endif
                </div>
            </th>
        </tr>
        <tr>
            <div >
                <th style="text-align: center;color:#666666;font-size: 14px">
                    <label >汇款账号:</label>
                </th>
                <th>
                    <div>
                        <input type="number" name="pay_account" required  value="@if($payInfo->pays){{ $payInfo->pays->pay_account }}@endif" lay-verify="required" placeholder="请输入汇款账号，如：6222600260001072444" autocomplete="off" class="layui-input" style="width:400px; height:30px;" >
                    </div>
                    <div>
                        @if($errors->has('pay_account'))
                            <span class="s3"><i class="red">*</i>  <sapn id="cellphone_point" style="color: red">{{$errors->first('pay_account')}}</sapn></span>
                        @endif
                    </div>
                </th>
            </div>
        </tr>
        <tr>
            <th style="text-align: center;color:#666666;font-size: 14px"><label >汇款行名称：</label></th>
            <th>
                <div>
                    <input type="text" name="pay_bank" required  value="@if($payInfo->pays){{ $payInfo->pays->pay_bank }}@endif" lay-verify="required" placeholder="请输入汇款行名称，如：中国农业银行分行" autocomplete="off" class="layui-input" style="width:400px; height:30px;" >
                </div>
                <div>
                    @if($errors->has('pay_bank'))
                        <span class="s3"><i class="red">*</i>  <sapn id="cellphone_point" style="color: red">{{$errors->first('pay_bank')}}</sapn></span>
                    @endif
                </div>
            </th>
        </tr>

        <tr>
            <th colspan="4" style="color:deeppink;font-size: 25px;text-align: center">
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit="" lay-filter="">确认修改</button>
                    </div>
                </div>
            </th>
        </tr>
        </div>
        </thead>
    </table>
</form>
<div class="layui-form-item"><input type="hidden" id="promptMessage" name="promptMessage" value="{{Session::get('status')}}"></div>

</div>
{{--添加成功后的提示信息--}}
<script>
    layui.use(['layer'],function(){
        var layer=layui.layer;
        var msg=$("#promptMessage").val();
        if(msg!=""){
            layer.msg(msg);
        }
    });
</script>

</body>
</html>